package cn.net.dpi.shp.model.entity;

import cn.net.dpi.shp.handler.GeometryTypeHandler;
import cn.net.dpi.shp.handler.PolygonTypeHandler;
import cn.net.dpi.shp.model.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import lombok.Getter;
import lombok.Setter;
import org.locationtech.jts.geom.Geometry;
import org.locationtech.jts.geom.Polygon;

/**
 * 车道标线实体
 *
 * @author ake
 * @since 2024-12-27
 */
@Getter
@Setter
@TableName(value = "hd_lane_marking", autoResultMap = true)
public class HdLaneMarking extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 车道标线编号
     */
    private String markingId;

    /**
     * 图幅编号
     */
    private String meshId;

    /**
     * 行政区划代码
     */
    private String adminCode;

    /**
     * 标线序号
     */
    private Long sequence;

    /**
     * 标线类型
     */
    private Long type;

    /**
     * 标线样式
     */
    private Long style;

    /**
     * 标线颜色
     */
    private Long color;

    /**
     * 方向
     */
    private Long direction;

    /**
     * 标线材质
     */
    private Long material;

    /**
     * 关联车道
     */
    private String refLane;

    /**
     * 关联车道组
     */
    private String groupId;

    /**
     * 标线宽度
     */
    private Long width;

    private String time;

    /**
     * 标线长度
     */
    private Double length;

    @TableField(typeHandler = GeometryTypeHandler.class)
    private Geometry geometry;

    private Long fileId;

    private String version;

    private Integer versionFlag;
}
